/**
 * 
 */
package com.common.spring;

import java.util.HashMap;
import java.util.Map;

/**
 * <p>decribing : </p>
 * <p>copyright : Copyright @ 2012 jfengone</p>
 * <p>company   : hansy</p>
 * <p>time      : 2011-9-7</p>
 *
 * @author jfeng
 * @version v1.0
 */
@SuppressWarnings("rawtypes")
public class ContextHolder {
	private Map contexts;

	public ContextHolder() {
		this.contexts = new HashMap();
	}

	public Object get(String key) {
		return this.contexts.get(key);
	}

	@SuppressWarnings("unchecked")
	public void put(String key, Object value) {
		this.contexts.put(key, value);
	}

	public void clear() {
		this.contexts.clear();
	}
}
